<script setup lang="ts">

import {ref} from "vue";

const chatModelVisible = ref(false)
const openChatModal = () => {
  chatModelVisible.value = true
}

const deepSeek=ref({
  basicUrl:"http://10.72.12.114:28080/sdai/activity/requestforwarding/03245d4c-2c11-4dcb-91fc-1b214a4sdfe3",
  headers:{
    'Content-Type': 'application/json'
  },
  params:{
    user_id: 'sysman',
    knowledge_base_name: "",
    history: [],
    scene: "纪检",
  },
  method:'POST',
  queryKey:'query',
  askKey:'answer',
  docsKey:'docs'
})
</script>

<template>
  <div>
    <a-button @click="openChatModal" type="primary">对话框</a-button>
    <ChatModel v-model:visible="chatModelVisible" ref="ChatModel" title="AI智能助手" icon="icon" :deep-seek="deepSeek">
<!--      <template #addressBook>-->
<!--        <a-button type="primary">通讯录</a-button>-->
<!--      </template>-->
    </ChatModel>
  </div>
</template>

<style scoped>

</style>
